package com.hhd.pojo.service;

import com.hhd.pojo.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service()
public class UserService {
   @Autowired
//    @Qualifier(value = "userDaoImpl1")
    private UserDao userDao;
    @Value(value = "abc")
    private String name;

    public void add(){
        System.out.println("service add........"+name);
        userDao.add();
    }

}
